package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class PersonEntity {
    private int id;
    private String personName;
    private String professional;
    private String section;
    private String workNumber;
    private String workTime;
    private String introduction;
    private String phoneNumber;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional;
    }

    public String getSection() {
        return section;
    }

    public void setSection(String section) {
        this.section = section;
    }

    public String getWorkNumber() {
        return workNumber;
    }

    public void setWorkNumber(String workNumber) {
        this.workNumber = workNumber;
    }

    public String getWorkTime() {
        return workTime;
    }

    public void setWorkTime(String workTime) {
        this.workTime = workTime;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public PersonEntity() {
    }

    public PersonEntity(int id, String personName, String professional, String section, String workNumber, String  workTime, String introduction, String phoneNumber) {
        this.id = id;
        this.personName = personName;
        this.professional = professional;
        this.section = section;
        this.workNumber = workNumber;
        this.workTime = workTime;
        this.introduction = introduction;
        this.phoneNumber = phoneNumber;
    }

    @Override
    public String toString() {
        return "PersonEntity{" +
                "id=" + id +
                ", personName='" + personName + '\'' +
                ", professional='" + professional + '\'' +
                ", section='" + section + '\'' +
                ", workNumber='" + workNumber + '\'' +
                ", workTime=" + workTime +
                ", introduction='" + introduction + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                '}';
    }
}
